﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 我的 ASP.NET 应用程序</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body class="layout">
    <header class="navbar header navbar-inverse" >
        <div class="navbar-header">
            <p class="navbar-brand" >SmallShop Manager</p>
        </div>
        <div  class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li role="presentation" class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">用户&nbsp;<span class="caret"></span>&nbsp;</a>
                    <ul class="dropdown-menu" aria-labelledby="dropdownMenuDivider">
                        <li><a href="/user/index">修改密码</a></li>
                        <li><a href="/login/logout">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </header>


    <div class="content" >
        <div class="menu-body navbar-inverse">
            <ul class="nav nav-pills nav-stacked">
                <li><a href="/">首页</a></li>
                <li><a href="/product">产品</a></li>
                <li><a href="/category">产品分类</a></li>
                <li><a href="/banner">横幅</a></li>
                <li><a href="#">配置</a></li>
            </ul>
        </div>
        <div class="container content-body">
            @RenderBody()
            
        </div>
    </div>


<footer class="" style="border-top: 1px solid">
    <div class="text-center">
        <p>&copy; @DateTime.Now.Year - 我的 ASP.NET 应用程序</p>    
    </div>
    
</footer>
   
    @Scripts.Render("~/bundles/jquery")

    @Scripts.Render("~/bundles/bootstrap")
<script>
    $(function() {
       
        //菜单选中
        var pname = location.pathname;
        console.log(pname);
        $('.menu-body a').each(function() {
            var href = $(this).attr("href");
            if (pname ===  href) {
                $(this).parent().addClass('active');
                return;
            }
        });

    });


</script>
    @RenderSection("scripts", required: false)
</body>
</html>
